import request from '@/utils/http.js'

//获取sn的uid
export const getSnUid = params => request('get','api/parentSn/getSnUid',params)

//----------------------------------------------------------------------------------------------教管易页面
//设备每日在线和应用使用信息
export const querySnLogInfo = params => request('get','mini/app/querySnLogInfo',params)

//刷新信息
export const checkRefresh = params => request('get','api/app/checkRefresh',params)

//获取应用统计日志
export const querySumAppLog = params => request('get','api/app/querySumAppLog',params)

//获取应用使用时长统计
export const getAppUseTimeLog = params => request('get','mini/app/getAppUseTimeLog',params)

//获取浏览器记录统计
export const getSnBrowserRecord = params => request('get','mini/app/getSnBrowserRecord',params)

//----------------------------------------------------------------------------------------------学习日志
//获取学习日志
export const queryAppLog = params => request('get','api/app/queryAppLog',params)

//sn编号获取浏览器信息
export const getBrowser = params => request('get','mini/sn/getBrowser',params)

//sn增加浏览器网址
export const addBrowser = params => request('post','mini/sn/addBrowser',params)

//sn删除浏览器网址
export const deleteBrowser = params => request('post','mini/sn/deleteBrowser',params)

//编辑浏览器网址
export const editBrowser = params => request('post','mini/sn/editBrowser',params)

//获取浏览器网址或书签信息
export const getBrowserUrlInfo = params => request('get','api/sn/getBrowserUrlInfo',params)

//----------------------------------------------------------------------------------------------我的应用
//sn编号获取安装的app信息
export const getAppInstall = params => request('get','mini/sn/getAppInstall',params)

//卸载应用
export const appUninstall = params => request('post','mini/app/appUninstall',params)

//修改安装应用信息
export const editAppInstall = params => request('post','mini/app/editAppAll',params)

//编号获取安装应用信息
export const queryIdApp = params => request('get','mini/app/queryIdApp',params)

//清除应用缓存
export const cleanAppCache = params => request('post','mini/app/cleanAppCache',params)

//获取所有系统应用-后台接口
export const querySysApp = params => request('get','admin/app/querySysApp',params)

//----------------------------------------------------------------------------------------------屏幕截图
//sn编号获取屏幕锁定和截图信息
export const querySnIdScreenshot = params => request('get','mini/sn/querySnIdScreenshot',params)

//设备发起截图
export const sendScreenshot = params => request('post','api/sn/sendScreenshot',params)

//设备锁定屏幕和解锁屏幕
export const screenIsLock = params => request('post','mini/sn/screenIsLock',params)

//清楚设备截图信息
export const deleteScreenshot = params => request('post','api/sn/deleteScreenshot',params)

//远程管理
export const longRangeControl = params => request('post','api/sn/longRangeControl',params)

//----------------------------------------------------------------------------------------------时间管控
//增加时间管控
export const addTimeControl = params => request('post','mini/sn/addTimeControl',params)

//修改时间管控
export const updateTimeControl = params => request('post','mini/sn/updateTimeControl',params)

//删除时间管控
export const delTimeControl = params => request('post','mini/sn/delTimeControl',params)

//sn编号获取设备时间管控
export const queryTimeControl = params => request('get','mini/sn/queryTimeControl',params)


//增加应用时间管控
export const addAppTime = params => request('post','mini/sn/addAppTime',params)
//编辑应用时间管控
export const editAppTime = params => request('post','mini/sn/editAppTime',params)
//删除应用时间管控
export const delAppTime = params => request('get','mini/sn/delAppTime',params)

//搜索app
export const searchAppControl = params => request('get', 'mini/app/searchAppControl', params)
//向设备推送app
export const pushAppControl = params => request('post', 'mini/app/pushAppControl', params)
//设备强制安装app
export const installAppControl = params => request('post', 'mini/app/installAppControl', params)
//设置应用霸屏
export const dominateApp = params =>request('post', 'mini/app/dominateApp', params)
//获取霸屏应用
export const queryDominateApp = params =>request('get', 'mini/app/queryDominateApp', params)
//获取平板使用时长记录
export const getSnUseTime = params =>request('get', 'mini/app/getSnUseTime', params)
//远程重置
export const snRestControl = params =>request('post', 'mini/sn/snRestControl', params)
//远程重启
export const snRestartControl = params =>request('post', 'mini/sn/snRestartControl', params)
//获取自启动应用
export const getAutoApp = params =>request('get', 'mini/app/getAutoApp', params)
//设置设备的自启应用改为非自启状态
export const setNotAuto = params =>request('get', 'mini/app/setNotAuto', params)
//查询当前已开启管控应用
export const getAppInside = params =>request('get', 'mini/app/getAppInside', params)
//删除应用霸屏设置
export const delDominateApp = params =>request('get', 'mini/app/delDominateApp', params)
//添加应用内部管控
export const addAppInside = params =>request('post', 'mini/app/addAppInside', params)
//删除应用内部管控
export const delAppInside = params =>request('get', 'mini/app/delAppInside', params)
//查询应用内部网页跳转白名单
export const getAppGroundAll = params =>request('get', 'mini/app/getAppGroundAll', params)
//删除应用内部跳转设置
export const delAppGround = params =>request('get', 'mini/app/delAppGround', params)
//添加应用内部跳转设置
export const addAppGround = params =>request('post', 'mini/app/addAppGround', params)
//应用缓存远程清除 
export const clearAppMemory = params =>request('post', 'mini/app/clearAppMemory', params)
//获取应用安装辅助白名单
export const getWhiteApp = params =>request('get', 'mini/app/getWhiteApp', params)
//添加应用辅助白名单
export const addWhiteApp = params =>request('post', 'mini/app/addWhiteApp', params)
//删除应用辅助白名单 
export const delWhiteApp = params =>request('get', 'mini/app/delWhiteApp', params)
//添加网址白名单 
export const addBrowserWhite = params =>request('post', 'mini/sn/addBrowserWhite', params)
//修改网址白名单 
export const editBrowserWhite = params =>request('post', 'mini/sn/editBrowserWhite', params)
//获取网址白名单 
export const getBrowserWhite = params =>request('get', 'mini/sn/getBrowserWhite', params)
//刷新状态
export const refreshEquipParam = params =>request('post', 'mini/sn/refreshEquipParam', params)
export const delSelfApp = params => request('post', 'mini/app/delSelfApp', params)















